#include <stdio.h>

int sum_to_top(int top)
{

  int sum = 0;
  for (int i = 1; i <= top; i++)
  {
    sum += i;
  }
  return sum;

}

int main()
{

  int sum = sum_to_top(100);
  printf("%d\n", sum);
  return 0;
}
